Authorware Article

Eye Candy for Authorware, Part 1: Building the Graphics

Amy Blankenship
Magnolia Multimedia

E-Learning applications built in Authorware don't have to have a boring appearance. This tutorial, the first in a two-part series, will show you how to create engaging graphics in Fireworks and integrate them into Authorware to show them off. The point of this tutorial is not to show you one way to create one interface, but to give you an idea of what's possible.

Note: the following link to the finished interface will prompt you to install the Authorware player if you don't already have it installed. Please check the list of supported browsers for the Authorware player before proceeding.View the finished interface.

Requirements

To complete this tutorial you will need to install the following software and files:

Authorware 7

Fireworks MX 2004

Build the Background Graphic

The first step in creating the background graphic is to open Fireworks MX. Most things in this tutorial will work in Fireworks 4, but the steps may be a little different. Create a new file that is 800 x 600 pixels, with a transparent canvas.

Create the Basic Shape

Select the rounded rectangle tool and draw a black rectangle anywhere on the canvas.

Creating a rounded rectangle

Figure 1. Creating a rounded rectangle

Use the Property inspector to change the rectangle to 800 x 600 pixels, with a corner roundness of 15. When you're finished, it will look like Figure 2.

Setting the proportions for the rounded rectangle.

Figure 2. Setting the proportions for the rounded rectangle

Save the file and name it interface_source.png. If you're planning to create a window with rounded corners, make two copies (with a little editing, you can use the other one with mojowinviz). Work with the copy of interface_source.png; ensure that is the one you have open.

Now, you will cut out areas for the content and buttons. Draw a white box on top of the first rectangle. This will be your main content area, so make it fairly large. See Figure 3.

Setting up the main content area.

Figure 3. Setting up the main content area

Punch the white area out of the black area. You can select it from the pop-up menu, as shown (Modify > Combine Paths > Punch) in Figure 4, or you can use the key combination, Alt+M, o, p. It kind of spells mop.

(Punching the white area out of the black area.

Figure 4. Punching the white area out of the black area

You'll do this a lot during this tutorial, so I suggest learning the keys. You can also set up a custom keystroke, if you like (refer to the documentation). Note that all of the Combine Path operations combine more than one path together, so any time that you use them, you will finish with a single shape.

Punch out two more areas at the bottom. Make one approximately three quarter of the width, and the other approximately one quarter of the width. Leave a bit of margin below the first box you punched out. Ensure that the corners have the same roundness on both shapes (you may have to play with it, because the size of the object affects how rounded the corners look). Your shape will look like Figure 5.

Rounding the corners.

Figure 5. Rounding the corners

Now, draw a circle in the upper right corner of your canvas (Figure 6).

Drawing a circle in the upper right corner.

Figure 6. Drawing a circle in the upper right corner

Clone the circle, or just copy it and paste it. Now, select Modify > Transform > Numeric Transform from the menu to scale the circle copy from the center (Figure 7a).

Scaling the circle copy from the middle.

Figure 7a. Scaling the circle copy from the middle

Now scale the object to 75 per cent. If you are using the default setting, put a check in the Constrain Proportions checkbox, and you'll only have to type 75 once (Figure 7b).

Scaling the object to 75 per cent.

Figure 7b. Scaling the object to 75 per cent

Copy the smaller circle, then send it to the back and hide it by clicking the eye icon next to it in the Layers Panel (Figure 7c). We will be using this shape later to make the help button, so keep a copy.

Creating an object and sending it to the back.

Figure 7c. Creating an object and sending it to the back

Select the larger circle, and combine it with the rectangle shape by selecting Modify > Combine > Union from the menu (Figure 8).

Combining the objects.

Figure 8. Combining the objects

Your file will look like Figure 8a:

The figure, once you've combined the circle with the large rectangle.

Figure 8a. The figure, once you've combined the circle with the large rectangle

Punch out the smaller circle (Figure 9).

Interface with the circle punched out

Figure 9. Interface with the circle punched out

Use your pen and subselection tool to round the corner where the inside of the rectangle meets the outside of the large circle (Figures 10 and 11).

Point to the upper left of the circle shape selected for modification.

Figure 10. Point to the upper left of the circle shape selected for modification.

The point in the corner has been deleted and the tangent handles on the selected point have been moved to curve the corner.

Figure 11. The point in the corner has been deleted and the tangent handles on the selected point have been moved to curve the corner.

Draw a long rounded rectangle and a small circle in the vertical bar at the top (Figure 12). Make a copy of each of these objects, as you did with the small circle above. Punch the original shapes out of the main interface object. When you are finished, it will look like Figure 12:

The interface with all the original shapes punched out.

Figure 12. The interface with all the original shapes punched out

Your Layers panel will look similar to the following:

The layers panel.

Figure 12a. The layers panel

Notice that I have changed the colors and names of the new objects to make them easier to see. You have created the basic shape of the interface. Save your work.

Give the Shape Texture

You'll use the main interface a lot, so let's make a copy of it and hide it.

Making a copy of your main interface and hiding it.

Figure 13. Making a copy of your main interface and hiding it

Make your original copy bright blue (Figure 14).

Making your copy bright blue.

Figure 14. Making your copy bright blue

Paste a second copy of the graphic in the original black color on top of the blue copy. This will be the basis of your texture. Since I like the Fiber texture for things like this, I chose to use a 50 per cent fiber texture (Figure 15).

Applying a texture to your object.

Figure 15. Applying a texture to your object

You will use this to mask the bright blue color beneath. The darker the color in the mask, the more of the color beneath will show through. As it is, that will be too bright. Therefore, you will invert the color on the mask. Select Adjust Color > Invert from the Effects pop-up menu in the Property inspector (Figure 16a).

Inverting the color with the Effects pop-up menu.

Figure 16a. Inverting the color with the Effects pop-up menu

When you finish, your mask should look like Figure 16b.

Your finished mask.

Figure 16b. Your finished mask

You should still have a copy of your main interface graphic on the clipboard. If you don't, make a copy of the one you hid earlier in the tutorial. Paste this back into the graphic, and place it behind the mask, using the Send Backward button (Figure 16c).

Send Backward button.

Fig 16c.gif Send Backward button

Your Layers panel will look like Figure 17a:

The Layers panel.

Fig 17a.gif The Layers panel

If you haven't already, select the top two copies of the main interface graphic. Now, select Modify > Mask > Group as Mask, or press Alt+M, M, G (Figure 17b).

Masking the selection.

Fig 17b.gif Masking the selection

Once you have finished, your file will look like Figure 18:

Your masked object

Fig 18.gif Your masked object

Give the Shape Dimension

It is easy to give a shape dimension when you add a slight three-dimensional effect to the shape, with Live Effects in Fireworks. Select the masked shape and click + next to Effects in the Property inspector. Select Bevel and Emboss and then Inner Bevel (Figure 19).

Adding a slight 3D effect to your shapes.

Figure 19. Add a slight 3D effect to your shapes

Now set the properties for your new inner bevel (Figure 20). Create a smooth, raised inner bevel with a size of 12. Leave the angle and opacity at the defaults and change the softness to 6. The default angle, by the way, is the angle that the "light" comes from on Authorware System buttons. By using this angle you ensure that the "light" in your interface will be consistent.

Setting the properties for your new inner bevel.

Figure 20. Setting the properties for your new inner bevel

When you finish, your shape will look like Figure 20a:

Your shape with an inner bevel.

Figure 20a. Your shape with an inner bevel

Give the Shape a Shadow

If you want to, you can use Fireworks Live Effects to add a drop shadow to your main shape. I find the Live Effects drop shadow a little flat, so I'll show you how I do mine a different way.

Either make another copy of your base graphic and place it behind the blue copy, or just make the blue copy visible. This is the last copy you'll need, so you may do it either way (Figure 21a).

Creating a copy of the basic graphic.

Figure 21a. Creating a copy of the basic graphic

All you're going to do is feather the edge and offset the copy by a few pixels, so it looks like Figure 21b:

Creating a drop shadow.

Figure 21b. Creating a drop shadow

Shade the "Crumb Trail"

You're going to shade the "crumb trail" area so that it will match the luminous effect of the buttons in the piece, even though it is not a button. Make the "crumb trail" object visible (the "crumb trail" object is the long rounded rectangle), and select the same bright blue you used to shine through the black texture (Figure 22).

Creating a shaded crumb trail

Figure 22. Creating a shaded crumb trail

Select Linear blend in the object's Property inspector (in the pop-up menu next to the fill color), and edit the blend to look like Figure 23a:

Editing the Linear blend for the crumb trail.

Figure 23a. Editing the Linear blend for the crumb trail.

Use the selection tool to change the angle of the blend so that it looks like Figure 23b:

Changing the angle of the blend.

Figure 23b. Changing the angle of the blend

You're done with the main file. Save your work.

Build the "Real" Buttons

Your real buttons should fit smoothly into the main interface. Start by making two copies of the interface file. Name the copies help.png and down_arr.png. Use the following steps to create the help button. You'll use what you learned to create the down arrow button on your own.

Open help.png. The only objects you need are the feathered shadow and the circle you hid earlier. Delete all other objects and ensure that both of the remaining objects are visible. Select a bright yellow color for the circle. When you are finished, your file will look like Figure 24a:

Creating the help screen help button.

Figure 24a. Creating the help screen help button

Mask the shadow so that you can only see the part in front of the button. Make a copy of the yellow graphic and bring it to the front (Figure 24b).

Bring the graphic to the front.

Figure 24b. Bring the graphic to the front

Make the circle white and give it a hard edge. Any part of the graphic that will touch the background must have a hard edge, or white pixels will appear along the edge (Figure 24c).

Create a hard edge.

Figure 24c. Create a hard edge

Now select the white circle and the black "shadow," and group them as a mask by selecting Modify > Mask > Group as Mask (Figure 24d).

Select the circle and the "black" shadow and group them as a mask.

Figure 24d. Select the circle and the "black" shadow and group them as a mask.

Your Layers panel will look like Figure 25

What your layers panel will look like.

Figure 25. What your layers panel will look like

Since you don't need to look at the shadow for a while, hide it by clicking the eye icon.

Hide the shadow layer.

Figure 26. Hide the shadow layer

Ensure that the yellow circle has a hard edge (Figure 27).

Setting a hard edge for the yellow circle.

Figure 27. Setting a hard edge for the yellow circle

Now, you'll make the button glow. Start by drawing a white ellipse on top of the yellow circle (Figure 28).

Drawing an ellipse on top of the yellow circle.

Figure 28. Drawing an ellipse on top of the yellow circle

Next, use your Subselection tool to squinch it down. We'll have you talking like a graphic designer in no time at this rate. Your squinched ellipse should look something like Figure 29:

Your squinched ellipse is narrower now.

Figure 29. Your squinched ellipse is narrower now

Since the light comes from the upper left corner, rotate the reshaped ellipse so that it looks like the light refracts from inside the button (Figure 30):

Rotate the glowing bit so that the light refracts naturally.

Figure 30. Rotate the glowing bit so that the light refracts naturally.

To make it glow, give the edges a feather of 6:

(Give the edges a feather of 6 for a glow.

Figure 31. Give the edges a feather of 6 for a glow.

Add a reflective highlight opposite the glow. Copy the yellow circle and bring it to the front. Change the fill color to white and use Modify >Transform > Numeric Transform to scale it 75 per cent of its original size (See Figure 32).

Making a reflective glow with a smaller white circle.

Figure 32. Making a reflective glow with a smaller white circle

Copy your new white circle. Use your arrow keys to move it down and to the right until it looks like Figure 33:

Creating and moving a copy of the white circle.

Figure 33. Creating and moving a copy of the white circle

Select both white circles, and select Modify > Combine Paths > Punch to create a crescent shape (Figure 34).

Combining paths.

Figure 34. Combining paths

To create the appearance that the crescent is a reflection rather than stuck on the image, use the property inspector to give the highlight an anti-aliased edge and lower the opacity to 65 per cent (Figure 35).

Creating the appearance that the crescent is a reflection.

Figure 35. Creating the appearance that the crescent is a reflection

Build the "Real" Buttons, Continued

I think the internal glow is still not quite glowing enough, so change the fill behind it to a radial blend. Select Radial from the fill type pop-up menu in the Property inspector. You can edit the blend itself by clicking the color chip. I edited mine so that it looked like Figure 36:

Editing the radial.

Figure 36. Editing the radial

Now adjust the blend so that it complements the glowing bit.

Adjusting the blend so it complements the glowing bit.

Figure 37. Adjusting the blend so it complements the glowing bit

It is time to show the shadow that you hid before. Click the eye next to the hidden layer in the Layers panel to make it visible. It is a touch too dark to go with the rest of the button, so let's adjust the opacity to 65 per cent.

Selecting the layer that is no longer hidden.

Figure 38a. Selecting the layer that is no longer hidden.

Adjusting the opacity of the layer.

Figure 38b. Adjusting the opacity of the layer

Now, you'll add the question mark that identifies this as a help button. Click the center of the circle with the text tool and type a question mark: ?. Set the following attributes for the question mark (Figure 39):

Setting the attributes for the question mark.

Figure 39. Setting the attributes for the question mark

Drag your new question mark to the center of the circle, and place it behind the reflective highlight (Figure 40).

Putting the question mark behind the reflective highlight.

Figure 40. Putting the question mark behind the reflective highlight

Now crop the image down to the actual button.

Save copies of the file for the over and down states. Open the "over state" file and adjust the radial fill of the main circle so that the graphic appears a little brighter (Figure 42).

Creating the over state button

Figure 42. Creating the "over state" button

For the "down state" button, I picked a pale blue-green color (Figure 43).

The down state button is blue.

Figure 43. The "down state" button is blue

Now use what you've learned to create a down arrow similar to the following buttons (Figure 44):

(An up, over, and down arrow button.

Figure 44. Up, over, and down arrow buttons

Build the "Fake" Buttons

These buttons will be hot objects instead of buttons in Authorware, so you can make them semi-transparent with anti-aliased edges.

Open a new file in Fireworks that is 200 x 135 and name it fake.png. Drag some guidelines to help you draw the left pointing (previous page) arrow. Use the rulers to align everything (Figure 45).

Aligning everything with guidelines.

Figure 45. Aligning everything with guidelines

Now use the pen tool to draw your arrow (Figure 46).

Draw an arrow.

Figure 46. Draw an arrow.

You'll make the arrow a mostly transparent object with an inner glow. Unfortunately, the glow effect in Fireworks takes its opacity from the object, so you have to find another way to do this. Give your arrow a 20 point airbrush stroke (Figure 47).

Setting the airbrush stroke for the arrow

Figure 47. Setting the airbrush stroke for the arrow

You're going to mask the arrow so that the airbrush glows only on the inside. Make a copy of the arrow, give it no stroke and a white, anti-aliased fill.

Masking the arrow.

Figure 48. Masking the arrow

Select both arrows and select Modify > Mask > Group as Mask. Your file will look like Figure 49:

Masking the group of arrows.

Figure 49. Masking the group of arrows

Now, paste another copy of the arrow in front of the masked arrow and give it no stroke. Set the color to the same bright blue you used for the crumb trail, but only give it a 20 per cent opacity. Select Anti-Alias from the Edge pop-up menu. When you're finished, your arrow will look like Figure 50:

Giving the arrow some color.

Figure 50. Giving the arrow some color

Use your pen tool to draw a one-pixel soft line along the top edge of the point and the top of the arrow body. Again, your object is not opaque enough to take a bevel Live Effect well (Figure 51).

Drawing a border.

Figure 51. Drawing a border

Copy and paste the highlights or clone them. Use the flip vertical button or Modify > Transform > Flip Vertical to turn the highlights "upside down."

Turn the highlights upside down

Figure 52. Turn the highlights upside down

Align them with the bottom of the arrow, and select a deep navy for the stroke color (Figure 53).

Aligning the highlights.

Figure 53. Aligning the highlights

So far, you've worked in a single layer. In this file, you are going to create one layer for each button. Rename Layer1 as Prev, and add a layer for Next.

Creating two new layers.

Figure 54. Creating two new layers

Copy all the objects from the first layer, and past them into the new Next layer. With the new objects still selected, use the Flip Horizontal button to reverse the arrow.

Flipping the arrow in the reverse direction.

Figure 55. Flipping the arrow in the reverse direction

Build the "Fake" Buttons, Continued

Move the objects in the Next layer to the right of the left arrow. Redraw the highlight lines so that the light comes from upper left (Figure 56).

Redraw the highlights on the right arrow.

Figure 56. Redraw the highlights on the right arrow.

I chose to create a generic rectangular button that you could use for anything, but you could create several smaller buttons depending on what you need for your own interface. Use techniques similar to the ones you used for the next and previous arrows to make your other buttons. Make sure you keep each button in a separate layer.

When you are finished, your file will look something like this:

Finished

Figure 57. Finished

Save your file and then save a copy of it using Save As, and name it fake_over.png. This will be the file for the "over" state for these buttons.

Open fake_over.png. Rename each layer to reflect the over state. This will be important when you export the finished graphics. Select the bright blue object in each layer. Your Layers panel will look something like this:

Renaming the layers.

Figure 58. Renaming the layers

Click the fill color chip in the Property inspector, and then click the little color wheel on the top of the color pop-up window.

Click the color wheel on the top of the color pop-up window.

Figure 59. Click the color wheel on the top of the color pop-up window.

In the Color panel, slide the slider up until the Hue, Sat, and Lum numbers match Figure 60. If this were pigment, what you are doing would be called making a "tint" of the same color. That means adding white to it, but not changing the base color. The changes you make affect all three selected objects.

Making a tint by adding white.

Figure 60. Making a tint by adding white

Notice that your buttons now look almost like transparent glass, which is a nice effect, but not quite what you want for the over state of our buttons. With the three blue objects still selected, change the opacity in the Properties inspector to 50 per cent.

Export your work

Now we're finally ready to create the BMP and PNG files Authorware can work with. Even though all the files you've created so far are PNG files, Fireworks has added a lot of data about Live Effects and layering that Authorware doesn't need to display your image just the way you made it. So you should export even PNG files to strip out all that information and reduce the file size.

You should still have fake_over.png open. Expand the Optimize panel (Figure 61).

Selecting the optimize file format.

Figure 61. Selecting the optimize file format

Click the Export button or select File > Export or Ctrl+Shift+R to export the file. Use the Optimize panel to select PNG32. Select Layers to Files from the Save As Type pop-up menu, and check the Trim Images checkbox (Figure 62).

The export settings.

Figure 62. The export settings

I created a separate folder for saving the finished PNG files, so that I would not mix them with the source files. Click Save, and Fireworks saves each button's over state as a separate PNG file. Repeat these steps for the "up" state files.

Open the interface_source.png. Use the Optimize panel to select PNG32. Click the Export button or select File > Export or Ctrl+Shift+R to export the file. Select Images Only from the Save As Type pop-up menu.

Now that you have finished exporting the translucent buttons, which will actually be Display Icons used as Hot objects, you can move onto the real buttons. The buttons you'll use through the button editor all should have the same export settings, so we'll use the Fireworks batch process feature. Select Batch Process from the file menu.

Add your button files to the batch. Note that the arrow files do not display here because I created them in a separate directory. Process the down arrow files the same way.

Exporting the buttons.

Figure 63. Exporting the buttons

Click Next when you are finished.

On the Batch Options dialog box, add Export to the Include in Batch side, and then click Edit (Figure 64).

The Batch Options dialog box.

Figure 64. The Batch Options dialog box

Edit the export Settings to Bmp 24. Click Next to advance to the next screen. Use Browse to select or create a directory for your finished BMP files. Click Batch and watch Fireworks create your BMP files.

Now you are ready to bring your shiny new graphics into Authorware. You'll learn how to do that in Part 2.


About the author

Amy Blankenship is a native of Gulfport, Mississippi. She graduated with a degree in Graphic Design and Photography from Mississippi State University. Her graphics background landed her a position on a team doing interactive Multimedia training for the Air Force, and the rest, as they say, is history.

The graphics aspect of that project began spilling over into performing the programming for the Authorware side. Though the job ended when the project did, Amy went on to do more Authorware work for several companies, primarily supporting military and government clients.

The government contracting market is not really the place to find lifetime employment, so after one too many layoffs, Amy started her own company, Magnolia Multimedia. As an independent contractor, she has had the chance to more fully explore the capabilities of both Authorware and her second favorite Macromedia product, Fireworks.